﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SWGeneracionE.Models
{
    public class BusParticipante
    {
        [Key()]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int idBusParticipante { get; set; }
        [Required]
        public int idBus { get; set; }
        public int idParticipanteXEvento { get; set; }
        public short ruta { get; set; }
        [NotMapped]
        public string codigo { get; set; }
        [NotMapped]
        public string nombre { get; set; }
        [NotMapped]
        public string tipoDocumento { get; set; }
        [NotMapped]
        public string noDocumento { get; set; }

        public virtual Bus Bus { get; set; }
        public virtual ParticipanteXEvento ParticipanteXEvento { get; set; }
    }
}